home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14369 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.iadfw.net!usenet
  2. From: Mark Nelson <markn@airmail.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: COM Port Strings
  5. Date: Sat, 13 Apr 1996 21:06:25 -0500
  6. Organization: Guest user
  7. Message-ID: <31705DA1.52FD@airmail.net>
  8. References: <4kpjai$972@linet06.li.net>
  9. NNTP-Posting-Host: dal27-09.ppp.iadfw.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
  14.  
  15. Scott Pollack wrote:
  16. > Could someone please explain how to input and output text strings to COM
  17. > ports?
  18. > Thanks,
  19. > -Gil Pollack
  20. > gpollack@li.net
  21.  
  22. Hi Scott or Gil,
  23.  
  24. Under 16 bit DOS, it's a little hard.  Generally you will need to install
  25. an interrupt driven handler to get the input from your device.  You can
  26. check my home page under "Articles" and find some documentation on doing this
  27. under just C.  You can also get information about my book, "Serial Communications: A C++
  28. Developer's Guide", which has the same stuff, just lots more of it.
  29.  
  30. Under 16 bit windows it's considerably easier and you don't need to do anything
  31. funky.  Open your win 3.1 API help file and look up OpenComm().  Just follow the
  32. see-alsos from there.
  33.  
  34. Mark Nelson
  35. http://web2.airmail.net/markn
  36.